{{- $key := .Get 0 -}}
{{- $name := .Get 1 -}}
<span class="popover-container">
    <a href="/{{ $key }}/" class="popover-link" >[[{{ $name | default $key }}]]</a>
    <span class="popover"></span><!-- popover content goes here -->
</span>